package com.cskaoyan.service;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.bo.AdminCreateBO;
import com.cskaoyan.bean.bo.AdminUpdateBO;
import com.cskaoyan.bean.param.BaseParam;
import com.cskaoyan.bean.po.AdminLogPO;
import com.cskaoyan.bean.po.AdminPO;
import com.cskaoyan.bean.vo.AdminInfoVO;
import com.cskaoyan.bean.vo.AdminListVO;
import com.cskaoyan.bean.vo.RoleVO;
import com.cskaoyan.bean.vo.TVO;

import java.util.List;

public interface AdminService {
    //查询所有管理员
    AdminListVO queryAdmin(BaseParam baseParam, String username);
   //查询管理员所有角色
    TVO<RoleVO> queryAllRole();
    //创建管理员
    BaseRespVo create(AdminCreateBO adminCreateBO);
    //修改管理员信息
    BaseRespVo update(AdminUpdateBO adminUpdateBO);
    //逻辑删除管理员
    BaseRespVo delete(AdminUpdateBO adminUpdateBO);

    BaseRespVo queryAllLog(BaseParam param, String name);

    List<AdminPO> selectAdminByAdminName(String username);


    AdminInfoVO queryInfo(AdminPO adminPO);

    void insertAdminLog(AdminLogPO adminLogPO);

}
